/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package frame;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;

/**
 *
 * @author icarlos
 */
public class Frame extends JFrame {

    JTela t = new JTela();

    String path[] = {" - start/inicio - ", "/home/user/test.dat", "/home/user/archive", "./expensive", "/directory/strauss", "/frame/jars/jaws", "./blackship/files", "/directory/trademark", "?/parlaphone/StringBuilder/traxart", "@position_memories", "clara_de_ovo",
        "/goss/satangoss/?direx", "~pente/~fino", "<dist>/^blob", "/carmagedon/killed/killall java", "black/label/society", "./dist/inst/clip/", "/home/user/Documents/NetBeans/Projects/extensable", "flash/friedsable/chroma/klein",
        "~/dist/ṽivaz/teste", "./klein/ultraje/bloco_de_notas", "stone_temple_pilots/plush/sound.mp3", "xtense.nop", "yum.", "sudo apt-get install <archive>", "/netbeans.sh", "clash?the_clash", "$%$**", "clap/your?/hands?/~dist", "tcpdump/clipart", "blob:-/clap/stringconex",
        "/<dist>/archive/files/tester.azon", "?clap/!staff/directory/gore", "tcpdump/pegazus/seya", ".../...", "&\\disturbed/x", "lazarus/icarus/tux", "%december", "/water/fire/earth/love", "blink_182/violence", "smell-like_teen_spirits",
        "stone_temple_pilots/plush/sound.mp3", "xtense.nop", "yum.", "sudo apt-get install <archive>", "/netbeans.sh", "clash?the_clash", "$%$**", "clap/your?/hands?/~dist", "tcpdump/clipart", "blob:-/clap/stringconex",
        "/gass/faith/for/full~/stalin", "~satangoss/!dailion/jaspion", "~archive.txt", "c://Documents/tester.doc", "conect to amazon server", "alocal", "britzieg-bop", "./<facade>/?bench", "somos./oque/tester?/nunca!", "nerver die",
        "mira/guaco/garnilón", "/disc/10.000/destinos/negro_amor", "adal/fonseca", ".tester@", "@menorzera/archive/~filechooser/negro.amor", "expensive^-juli", "#/%-&*(trim)", "jLabelCharger.setText(path[i].trim().toString())",
        "./Engenheiros/Hawaii/10.000/Destinos/Negro_Amor.MP3", "coma_guitar", "stone_temple_pilots/plush/sound.mp3", "xtense.nop", "yum.", "sudo apt-get install <archive>", "/netbeans.sh", "clash?the_clash", "$%$**", "clap/your?/hands?/~dist", "tcpdump/clipart", "blob:-/clap/stringconex",
        "tree", "user@user-machine:~$", "scada.dat", "batera<lsi>/?/adal/fonseca", "click jogos", "YUM.adobe.flash.player", "tar.gz.sh-risk", "tar/star/retar", "A melhor banda de todos os tempos da ultima semana", "/home/user/NetBeansProjects",
        "jasper/jabx/java/jar/jaws/jFileChooser/.jar", "plush:/~plush/?stp/~:$wow", "crazytown-:$", "jar/jaws/jax/jiraya/janis/joplin/.jar", "methodes*&#@!%cpip", "hudson-datamachine", "§ql-§erver§", "/satangoss/$tree", "kylix/netflix",
        "/Documents/Archive/prinkler/chronicles", "/@directory_quicky/...-&@#$/Done!"};

    public Frame() {
        initComponents();

        new Thread() {

            @Override
            public void run() {
                for (int i = 0; i < 102 && i < path.length; i++) {
                    try {
                        jProgressBar.setValue(i);
                        jLabelCharge.setText(path[i].trim().toString());
                        sleep(85);
                    } catch (InterruptedException ex) {
                        Logger.getLogger(Frame.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }
                System.out.println("tam: " + path.length);
                dispose();
                t.setVisible(true);
            }
        }.start();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabelCharge = new javax.swing.JLabel();
        jProgressBar = new javax.swing.JProgressBar();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setUndecorated(true);
        getContentPane().setLayout(null);

        jLabelCharge.setBackground(new java.awt.Color(254, 254, 254));
        jLabelCharge.setFont(new java.awt.Font("Arial", 2, 10)); // NOI18N
        jLabelCharge.setForeground(new java.awt.Color(254, 254, 254));
        jLabelCharge.setText("charger");
        jLabelCharge.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        getContentPane().add(jLabelCharge);
        jLabelCharge.setBounds(10, 210, 270, 13);

        jProgressBar.setStringPainted(true);
        getContentPane().add(jProgressBar);
        jProgressBar.setBounds(0, 260, 500, 20);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/platform-splash.png"))); // NOI18N
        jLabel1.setText("jLabel1");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(0, 0, 500, 280);

        setSize(new java.awt.Dimension(497, 282));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Frame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                new Frame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabelCharge;
    private javax.swing.JProgressBar jProgressBar;
    // End of variables declaration//GEN-END:variables
}
